package com.mashibing.controller.zfd;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author zfd
 * @version v1.0
 * @date 2022/11/28 9:28
 * @description 测试参数 Model 的用法
 */
@Controller
public class ModelController {
    @GetMapping("/01")
    private String hello(Model model) {
        model.addAttribute("name", "xxx");
        return "01";
    }
}
